package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Home-pc
 * Date: 2023-08-16
 * Time: 14:05
 */
public  abstract class Shape {
    public Shape(){

    }
    public int a;
    public void swim(){
    }
    public abstract void draw();
}
abstract class Rect extends Shape{
    public abstract void draw1();
}
class Cycle extends Rect {
    @Override
    public void draw1() {

    }

    @Override
    public void draw() {

    }
}
class Test2 {

   /* public static void drawShapes2() {
        Rect rect = new Rect();
        Cycle cycle = new Cycle();
        Shape[] shapes = {new Cycle(), new Rect(), new Cycle(), new Rect()};

        for (Shape shape : shapes) {
            shape.draw();
        }
    }
*/
    public static void main(String[] args) {
        //drawShapes2();

    }
}